<template>
  <div class="banner">
    <van-swipe @change="onChange">
    <van-swipe-item>1</van-swipe-item>
    <van-swipe-item>2</van-swipe-item>
    <van-swipe-item>3</van-swipe-item>
    <van-swipe-item>4</van-swipe-item>
  </van-swipe>
  </div>
</template>

<script>
export default {
  name: 'Banner',
  methods: {
    onChange (index) {
      Toast('当前 Swipe 索引：' + index)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
